<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <?php $this->load->view('head'); ?>
        <title></title>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#rol").change(function(){
                    if($(this).val() == ""){
                        parent.fraRegistro.location.href="about:blank";
                    }
                    else parent.fraRegistro.location.href="<?php echo site_url("registro/registra/"); ?>/" + $(this).val();
                }); //fin $("#rol").change(function(){
            }); //fin $(document).ready(function(){
        </script>
    </head>
    <body>
        <div>
            <table>
                <tr>
                    <td><label for="rol">Registro de: </label></td>
                    <td>
                        <select id="rol" name="rol" >
                            <option value="">Elija</option>
                            <?php
                                foreach($roles->result() as $row)
                                    echo "<option value='".$row->rolId."'>".$row->rolDescripcion."</option>";
                            ?>
                        </select>
                    </td>
                </tr>
            </table>
        </div>
        <iframe id="fraRegistro" name="fraRegistro" src="" height="100%" width="100%" frameborder="0" >Su navegador no soporta Frames</iframe>
        <?php
        // put your code here
        ?>
    </body>
</html>
